package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchInfoServiceApi;
import com.thb.pay.api.merchant.vo.req.MchInfoPageReq;
import com.thb.pay.api.merchant.vo.req.MchInfoReq;
import com.thb.pay.api.merchant.vo.resp.MchInfoVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchInfoServiceApiFallbackFactory implements FallbackFactory<MchInfoServiceApi> {


    @Override
    public MchInfoServiceApi create(Throwable throwable) {
        return new MchInfoServiceApi() {
            @Override
            public PageResult<MchInfoVo> findPage(MchInfoPageReq pageReq) {
                return null;
            }

            @Override
            public List<MchInfoVo> findAllList() {
                return null;
            }

            @Override
            public List<MchInfoVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public MchInfoVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchInfoReq mchInfoVoReq) {

            }

            @Override
            public void update(MchInfoReq mchInfoVoReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}